﻿@model List<KRM.Core.CustomerSearchView>
<div class="row-fluid" id="addcustomer_messageresult"></div>
<div class="row-fluid" id="dttbResult"><table class="table table-hover table-bordered table-fix">
                                           <thead>
                                               <tr>
                                                   <th>Select</th>
                                                   <th>CustomerID</th>
                                                   <th>Title</th>
                                                   <th>First Name</th>
                                                   <th>Last Name</th>
                                                   <th>Email Address</th>
                                                   <th>Receive News Letter</th>
                                                   <th>OrderRef</th>
                                                   <th>Date Placed</th>
                                                   <th>Order Method</th>
                                               </tr>
                                           </thead>
                                           <tbody>
                                               @if (Model!=null){
                                                   foreach (var item in Model)
                                                   {
                                                       <tr>
                                                           <td style="text-align: center;padding:0"><input type="checkbox" name ="SelectedCustomers"  value="@item.CustomerID"style="height: 100%;width: 100%;"/></td>
                                                           <td>@item.CustomerID</td>
                                                           <td>@item.Title</td>
                                                           <td>@item.Forename</td>
                                                           <td>@item.Surname</td>
                                                           <td>@item.EmailAddress</td>
                                                           <td>@item.ReceiveNewsletter</td>
                                                           <td style="text-align: center">@item.OrderRef</td>
                                                           <td style="text-align: center">@item.DatePlaced</td>
                                                           <td style="text-align: center">@item.OrderMethod</td>
                                                       </tr>
                                                   }}
                                           </tbody>
                                       </table>

</div>